﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.ERP.API
{
    /// <summary>
    /// Consul
    /// </summary>
    public class ConsulConfig
    {
        public string Address { get; set; }
        public string DataCenter { get; set; }
        public string ServiceName { get; set; }
        public int ServicePort { get; set; }
        public string HealthCheck { get; set; }
        public string localhost { get; set; }

        public void Config(ConsulConfig config)
        {
            Address = config.Address;
            DataCenter = config.DataCenter;
            ServiceName = config.ServiceName;
            ServicePort = config.ServicePort;
            HealthCheck = config.HealthCheck;
            localhost = config.localhost;
        }
    }
}
